﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="ThemMoiHangHoa.aspx.cs" Inherits="Admin_QuanLyHangHoa_ThemMoiHangHoa" Title="Thêm mới hàng hóa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table width="98%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #c0c0c0">
                    <tr>
                        <th class="Title" align="left" colspan="2">
                            Thêm mới hàng hóa
                        </th>
                    </tr>
                    
                     <tr>
                        <td align="left" class="SpacerTd">
                            Nhóm hàng hóa 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:DropDownList CssClass="textbox" ID="DDL_Nhomhang" runat="server">
                             </asp:DropDownList>
                            <asp:RequiredFieldValidator CssClass="ListContent" ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="DDL_Nhomhang" ErrorMessage="Bạn hãy chọn nhóm hàng hóa!"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd">
                            Mã hàng hóa 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox CssClass="textbox" ID="txtMa" runat="server" Columns="40" 
                                MaxLength="4"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFV_Ma" runat="server" ControlToValidate="txtMa"
                                ErrorMessage="Bạn chưa nhập mã hàng hóa !"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd">
                            Tên mặt hàng 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox CssClass="textbox" ID="txtTenHang" runat="server" Columns="40"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFV_TenHang" runat="server" ErrorMessage="Bạn chưa nhập tên hàng hóa !"
                                ControlToValidate="txtTenHang"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                     <tr>
                        <td align="left" class="SpacerTd">
                            Mô tả
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox CssClass="textbox" ID="txtMota" runat="server" Columns="40" 
                                Height="50px" Width="246px" TextMode="MultiLine"></asp:TextBox>
                           
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd">
                            Ảnh 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:FileUpload ID="IMG_Up" runat="server" />
                        </td>
                    </tr>
                     <tr>
                        <td align="left" class="SpacerTd">
                            Đơn giá 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox CssClass="textbox" ID="txtDonGia" runat="server" Columns="40" 
                                MaxLength="8"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Bạn chưa nhập đơn giá !"
                                ControlToValidate="txtDonGia"></asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="regexpThuTu" runat="server"     
                                    ErrorMessage="Bạn chỉ được nhập số." 
                                    ControlToValidate="txtDonGia"     
                                    ValidationExpression="\d*" />
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <td colspan="2" style="height: 5px">
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2" class="Title" align="left">
                            <asp:Button ID="Hang_AddNew" CssClass="button" runat="server" Text="Thêm mới" OnClick="Hang_AddNew_Click" />
                            <input type="button" id="Back_AddNew" runat="server" value="Quay lại" class="button" onclick="javascript:history.go(-1)" />
                        </th>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

